package com.example.wuqujingdianphone.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by yuanpk on 2018/4/13.
 */

public class BookDetailParcelable implements Parcelable {

    public String id;
    public String spic;
    public String title;
    public String author;
    public String news_source;
    public String jianjie;
    public String url;

    public BookDetailParcelable() {
    }

    protected BookDetailParcelable(Parcel in) {
        id = in.readString();
        spic = in.readString();
        title = in.readString();
        author = in.readString();
        news_source = in.readString();
        jianjie = in.readString();
        url = in.readString();
    }

    public static final Creator<BookDetailParcelable> CREATOR = new Creator<BookDetailParcelable>() {
        @Override
        public BookDetailParcelable createFromParcel(Parcel in) {
            return new BookDetailParcelable(in);
        }

        @Override
        public BookDetailParcelable[] newArray(int size) {
            return new BookDetailParcelable[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(id);
        dest.writeString(spic);
        dest.writeString(title);
        dest.writeString(author);
        dest.writeString(news_source);
        dest.writeString(jianjie);
        dest.writeString(url);
    }
}
